<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../template/adminTemp.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns="http://www.w3.org/1999/xhtml">
    <ui:define name="content">
        <section class="grid_6 first">
            <div class="columns">
                <div class="grid_6 first">
                    <h:form prependId="false" styleClass="form panel" id="form">
                        <fieldset>
                            <dl>
                                <h:inputHidden value="#{branchManagedBean.branchSelected.branchId}"/>
                                <dt></dt>
                                <dd><label>Branch's name:</label><p:inputText value="#{branchManagedBean.branchSelected.branchName}" /></dd>
                                <dt></dt>
                                <dd><label>Email</label><p:inputText value="#{branchManagedBean.branchSelected.email}" /></dd>
                                <dt></dt>
                                <dd><label>Telephone</label><p:inputText value="#{branchManagedBean.branchSelected.phoneNo}"/></dd>
                                <dt></dt>
                                <dd><label>Fax</label><p:inputText value="#{branchManagedBean.branchSelected.fax}"/></dd>
                                <dt></dt>
                                <dd><label>Address</label><p:inputTextarea value="#{branchManagedBean.branchSelected.address}"/></dd>
                            </dl>
                        </fieldset>
                        <hr/>
                        <h:commandButton styleClass="button button-blue" style="margin-right: 7px" value="Save" action="#{branchManagedBean.update}" />                           
                        <h:commandButton styleClass="button button-gray" value="Cancel" type="Reset"/>
                    </h:form>
                </div>
            </div>
        </section>
    </ui:define>
</ui:composition>